/* Global Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  font-family: 'Segoe UI Variable', 'Segoe UI', sans-serif; /* Modern Segoe UI */
}

body {
  font-family: 'Segoe UI Variable', sans-serif;
  overflow: hidden;
  background: url('Microsoft_Windows_9_HD_Widescreen_Wallpaper_03_1920x1200-2205267051.jpg') center/cover no-repeat fixed; /* Default wallpaper */
  background-size: cover;
  color: #333;
}

/* Common UI Elements - Buttons */
button {
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  transition: all 0.2s ease-in-out;
}

button:hover {
  filter: brightness(1.1);
}

.metro-button {
  background: var(--metro-accent);
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.metro-button:hover {
  background: var(--metro-accent-dark);
  transform: translateY(-1px);
}

.hidden {
  display: none !important;
}

/* Setup Wizard Styles (Modernized) */
#setup-wizard {
  --metro-accent: #0078D7;
  --metro-accent-dark: #00569B;
  --metro-text: white;
  background: #1a1a1a; /* Black background for setup */
  backdrop-filter: blur(25px); /* Increased blur */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 1s ease;
  overflow: hidden;
  color: var(--metro-text);
}

.setup-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden; /* Hide overflow for smooth transitions */
}

.setup-header {
  padding: 40px 80px;
  display: flex;
  align-items: center;
  gap: 25px;
  background: rgba(255, 255, 255, 0.05); /* Subtle header background */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.setup-header h2 {
  font-size: 48px;
  font-weight: 300;
  margin: 0;
  letter-spacing: 1px;
}

.setup-logo {
  width: 90px;
  height: 90px;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3)); /* Soft glow */
}

.setup-steps {
  flex-grow: 1;
  position: relative;
  padding: 40px 80px;
  padding-bottom: 90px; /* Space for controls */
  overflow-y: auto;
  height: calc(100vh - 160px);
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center content vertically */
  align-items: center;
}

.setup-step {
  display: none;
  animation: slideInFromRight 0.5s forwards; /* Smooth step transition */
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white for content area */
  padding: 40px;
  border-radius: 20px; /* More rounded corners */
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 800px; /* Wider steps */
  text-align: center;
  margin: auto; /* Center step content */
}

.setup-step.active {
  display: block;
}

.setup-step h3 {
  font-size: 42px;
  font-weight: 300;
  margin-bottom: 25px;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.setup-step p {
  font-size: 22px;
  opacity: 0.9;
  line-height: 1.6;
}

.setup-options, .edition-options, .recovery-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Larger options */
  gap: 30px;
  margin-top: 40px;
  width: 100%;
}

.setup-option, .edition-option, .recovery-option {
  background: rgba(255, 255, 255, 0.1); /* Slightly less transparent */
  padding: 30px;
  border-radius: 16px; /* Even more rounded */
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1); /* More subtle border */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.setup-option:hover, .edition-option:hover, .recovery-option:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.setup-option.selected, .edition-option.selected {
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--metro-accent); /* Highlight with accent color */
  box-shadow: 0 0 0 3px var(--metro-accent), 0 10px 30px rgba(0, 0, 0, 0.4);
}

.setup-option h4, .edition-option h4, .recovery-option h4 {
  font-size: 28px;
  margin: 0 0 12px 0;
  font-weight: 400;
  color: var(--metro-text);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.setup-option p, .edition-option p, .recovery-option p {
  margin: 0;
  font-size: 18px;
  opacity: 0.8;
  line-height: 1.5;
}

.recovery-option .description {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 15px;
  margin-bottom: 20px;
}

.recovery-option .metro-button {
  width: auto;
  min-width: 150px;
  align-self: flex-end;
  padding: 12px 25px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid white;
  color: white;
}

.recovery-option .metro-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.setup-controls {
  padding: 25px 80px;
  background: rgba(0, 0, 0, 0.5); /* Darker, more solid footer */
  display: flex;
  justify-content: flex-end;
  gap: 25px;
  position: absolute; /* Changed to absolute to stick to bottom of .setup-content */
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(15px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.setup-controls button {
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 14px 35px; /* Larger buttons */
  font-size: 20px;
  border-radius: 10px; /* More rounded */
}

.setup-controls button:hover {
  background: rgba(255, 255, 255, 0.15);
}

.form-group label {
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 20px;
  color: white;
  display: block;
}

.form-group input[type="text"] {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: white;
  font-size: 24px;
  padding: 15px 20px;
  width: 100%;
  max-width: 500px;
  margin-top: 15px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.form-group input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.form-group input[type="text"]:focus {
  outline: none;
  border-color: white;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.profile-pictures h4 {
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 25px;
  color: white;
}

.profile-picture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Larger and responsive */
  gap: 20px;
  margin-top: 20px;
}

.profile-picture-option {
  border: 4px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.profile-picture-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-picture-option:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.profile-picture-option.selected {
  border-color: var(--metro-accent); /* Highlight with accent color */
  box-shadow: 0 0 0 5px var(--metro-accent), 0 8px 25px rgba(0, 0, 0, 0.3);
}

.privacy-options-container {
  max-width: 700px; /* Wider for better readability */
  margin: 0 auto;
}

.privacy-option {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.privacy-option label {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 20px;
  color: white;
  font-weight: 400;
  cursor: pointer;
}

.privacy-option .description {
  margin-top: 12px;
  margin-left: 35px; /* Indent description */
  opacity: 0.8;
  font-size: 16px;
  line-height: 1.5;
}

.privacy-option input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 24px; /* Larger checkbox */
  height: 24px;
  border: 2px solid white;
  position: relative;
  cursor: pointer;
  margin-right: 10px;
  border-radius: 6px; /* Slightly rounded */
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.privacy-option input[type="checkbox"]:hover {
  background: rgba(255, 255, 255, 0.2);
}

.privacy-option input[type="checkbox"]:checked {
  background: white;
  border-color: white;
}

.privacy-option input[type="checkbox"]:checked::before {
  content: '✓'; /* Checkmark */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  color: var(--metro-accent); /* Blue checkmark */
}

/* Windows Hello Setup */
.hello-setup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  margin-top: 40px;
}

.hello-setup p {
  font-size: 20px;
}

.camera-preview {
  width: 300px;
  height: 220px;
  background: rgba(0,0,0,0.5);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
}

.camera-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.hello-setup .metro-button {
  padding: 15px 30px;
  font-size: 18px;
}

.skip-option {
  margin-top: 10px;
}

.skip-option a {
  color: white;
  text-decoration: underline;
  font-size: 18px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.skip-option a:hover {
  opacity: 1;
}

/* Installation Progress */
.installation-progress {
  text-align: center;
  padding: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%; /* Fill available space */
}

.installation-progress .metro-spinner {
  width: 60px; /* Larger spinner */
  height: 60px;
  border: 6px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  margin-bottom: 40px;
  animation: spin 1s linear infinite;
  border-radius: 50%;
}

.installation-progress .installation-text {
  font-size: 32px;
  font-weight: 300;
  color: white;
  animation: textFade 6s infinite;
}

/* Keyframes */
@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes textFade {
  0%, 33% {
    opacity: 1;
    content: "Applying settings...";
  }
  34%, 66% {
    opacity: 1;
    content: "Finalizing the OS...";
  }
  67%, 100% {
    opacity: 1;
    content: "Almost ready...";
  }
}

/* Startup Screen (Newer UI) */
#startup-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #001f4d 0%, #000a1a 100%); /* Dark blue gradient */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 1s ease-out;
}

.startup-logo {
  width: 250px; /* Larger logo */
  height: 250px;
  animation: startupPulsate 3s ease-in-out infinite;
}

.startup-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(0, 120, 215, 0.8)); /* Blue glow */
}

.loading-dots {
  display: flex;
  gap: 12px; /* Larger dots, more space */
  margin-top: 60px;
}

.dot {
  width: 12px;
  height: 12px;
  background: linear-gradient(45deg, #0078D7, #00569B); /* Gradient dots */
  border-radius: 50%;
  animation: dotFade 3s infinite;
  box-shadow: 0 0 8px rgba(0, 120, 215, 0.5);
}

.dot:nth-child(2) { animation-delay: 0.3s; }
.dot:nth-child(3) { animation-delay: 0.6s; }
.dot:nth-child(4) { animation-delay: 0.9s; }
.dot:nth-child(5) { animation-delay: 1.2s; }

@keyframes startupPulsate {
  0% { transform: scale(0.98); opacity: 0.8; }
  50% { transform: scale(1.02); opacity: 1; }
  100% { transform: scale(0.98); opacity: 0.8; }
}

@keyframes dotFade {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* Lock Screen */
#lock-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url('Microsoft_Windows_9_HD_Widescreen_Wallpaper_03_1920x1200-2205267051.jpg') center/cover no-repeat fixed; /* Default wallpaper */
  backdrop-filter: blur(30px); /* Heavy blur for locked state */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end; /* Align content to bottom */
  padding-bottom: 80px; /* Space from bottom */
  z-index: 1000;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: backdrop-filter 0.5s ease;
  cursor: pointer; /* Indicate it's clickable */
}

.lock-screen-content {
  text-align: center;
  margin-bottom: 80px; /* Push user info up */
}

.lock-screen-time {
  font-size: 120px; /* Huge time */
  font-weight: 200;
  line-height: 1;
  margin-bottom: 10px;
}

.lock-screen-date {
  font-size: 36px;
  font-weight: 300;
  margin-bottom: 50px;
}

.lock-screen-user {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.lock-screen-user .user-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  margin-bottom: 15px;
}

.lock-screen-user .user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lock-screen-user .user-name {
  font-size: 28px;
  font-weight: 300;
}

.lock-screen-prompt {
  font-size: 24px;
  opacity: 0.8;
  animation: fadeInOutPulse 2s infinite ease-in-out;
}

@keyframes fadeInOutPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

/* Login Screen Styles (Modernized) */
#login-screen {
  background: url('Microsoft_Windows_9_HD_Widescreen_Wallpaper_03_1920x1200-2205267051.jpg') center/cover no-repeat fixed;
  backdrop-filter: blur(20px); /* Consistent with lock screen, less blur than locked */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.5s ease;
  color: white;
}

.login-container {
  background: rgba(0, 0, 0, 0.4); /* Darker, more prominent login box */
  padding: 50px;
  border-radius: 20px; /* More rounded */
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  text-align: center;
  backdrop-filter: blur(15px); /* More blur for the box itself */
  max-width: 450px; /* Wider */
  width: 90%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInScale 0.6s ease;
}

.login-container .login-logo {
  margin-bottom: 40px !important;
  filter: drop-shadow(0 0 10px rgba(0, 120, 215, 0.5));
}

.login-container .login-logo svg {
  fill: white !important;
}

.login-avatar {
  width: 140px; /* Larger avatar */
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 35px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border: 4px solid rgba(255, 255, 255, 0.4);
  animation: pulseAvatar 2s infinite ease-in-out;
}

.login-username {
  font-size: 32px;
  margin-bottom: 40px;
  font-weight: 300;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

#password-input {
  padding: 18px; /* Larger input */
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px; /* More rounded */
  font-size: 18px;
  text-align: center;
  color: white;
  transition: all 0.3s ease;
  width: 100%;
}

#password-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

#password-input:focus {
  outline: none;
  border-color: white;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

#login-button {
  padding: 18px; /* Larger button */
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
  border-radius: 10px;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  transition: all 0.3s ease;
}

#login-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.login-loader .dot {
  background: linear-gradient(45deg, #0078D7, #00569B); /* Gradient dots */
  box-shadow: 0 0 5px rgba(0, 120, 215, 0.5);
}

.hello-options {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.login-option-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: white;
  font-size: 16px;
  transition: all 0.2s ease;
}

.login-option-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.login-option-btn svg {
  fill: currentColor;
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* Loading Screen (General) */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #001f4d 0%, #000a1a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.loading-content {
  text-align: center;
  color: white;
}

.loading-logo {
  width: 150px;
  height: 150px;
  margin-bottom: 30px;
  animation: pulse 2s infinite ease-in-out;
  filter: drop-shadow(0 0 10px rgba(0, 120, 215, 0.7));
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.2);
  border-left-color: #0078D7;
  border-radius: 50%;
  margin: 30px auto;
  animation: spin 1s linear infinite;
}

.loading-text {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 1px;
  opacity: 0.9;
  margin-bottom: 15px;
}

.loading-subtext {
  font-size: 18px;
  opacity: 0.7;
}

@keyframes pulse {
  0% { transform: scale(0.98); opacity: 0.8; }
  50% { transform: scale(1.02); opacity: 1; }
  100% { transform: scale(0.98); opacity: 0.8; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Desktop Styles (Modernized) */
#desktop {
  width: 100vw;
  height: 100vh;
  position: relative;
  opacity: 0;
  transition: opacity 0.5s ease;
  background: url('Microsoft_Windows_9_HD_Widescreen_Wallpaper_03_1920x1200-2205267051.jpg') center/cover no-repeat fixed; /* Default wallpaper */
  background-size: cover;
}

/* Desktop Icons */
.desktop-icons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); /* Slightly larger icons */
  gap: 15px;
  padding: 20px;
  max-width: 130px; /* Adjust if icons stack differently */
  height: fit-content;
}

.desktop-icon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 5px; /* More padding */
  cursor: pointer;
  border-radius: 12px; /* More rounded */
  transition: background-color 0.2s, transform 0.2s;
  width: 110px; /* Fixed width */
  height: 110px; /* Fixed height */
  user-select: none;
}

.desktop-icon:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.desktop-icon.selected {
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.desktop-icon img {
  width: 52px; /* Larger images */
  height: 52px;
  object-fit: contain;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.desktop-icon span {
  font-size: 13px;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

/* Taskbar (Newer UI) */
#taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px; /* Taller taskbar */
  background: rgba(0, 0, 0, 0.3); /* Darker, more prominent */
  backdrop-filter: blur(20px); /* Increased blur */
  display: flex;
  align-items: center;
  padding: 0 15px;
  z-index: 1000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.2);
}

#start-search-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

#start-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px; /* Rounded start button */
  height: 40px;
  width: 40px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#start-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

#start-btn .windows-logo {
  width: 24px;
  height: 24px;
  fill: white; /* White logo */
}

#taskbar-search-container {
  position: relative;
  width: 250px; /* Wider search bar */
}

#taskbar-search {
  width: 100%;
  padding: 8px 15px 8px 40px; /* Padding for icon */
  border: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px; /* Pill shape */
  color: white;
  font-size: 15px;
  outline: none;
  transition: all 0.2s ease;
}

#taskbar-search::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

#taskbar-search:focus {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.8);
}

#taskbar-programs {
  display: flex;
  flex-grow: 1;
  justify-content: center; /* Center taskbar buttons */
  gap: 10px;
  padding: 0 20px;
}

.taskbar-button {
  height: 40px;
  padding: 0 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.taskbar-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.taskbar-button.active {
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

#system-tray {
  margin-left: auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: white;
}

.tray-icon {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: white;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.tray-icon:hover {
  background: rgba(255, 255, 255, 0.1);
}

.tray-icon svg {
  width: 18px;
  height: 18px;
  fill: white;
  margin-right: 5px;
}

#clock {
  font-size: 15px;
  font-weight: 600;
  color: white;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* Start Menu (Newer UI) */
#start-menu {
  position: fixed;
  bottom: 60px; /* Higher above taskbar */
  left: 15px; /* Offset from left */
  width: 500px; /* Wider start menu */
  height: 700px; /* Taller */
  background: rgba(255, 255, 255, 0.95); /* Lighter background */
  backdrop-filter: blur(25px); /* Increased blur */
  border-radius: 20px; /* More rounded corners */
  display: flex;
  flex-direction: column;
  z-index: 999;
  color: #333;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transform-origin: bottom left;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth spring-like transition */
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

#start-menu.hidden {
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.start-menu-header {
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}

#start-menu-search-input {
  flex-grow: 1;
  padding: 10px 15px 10px 40px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 18px; /* Pill shape */
  font-size: 15px;
  color: #333;
  outline: none;
}

#start-menu-search-input::placeholder {
  color: #666;
}

#start-menu-search-input:focus {
  background: rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 0 2px rgba(0, 120, 215, 0.3);
}

.start-menu-search-icon {
  position: absolute;
  left: 25px; /* Adjust based on input padding */
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #666;
}

.start-menu-content {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
}

.start-menu-section {
  margin-bottom: 30px;
}

.start-menu-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #444;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); /* Dynamic columns for tiles */
  gap: 15px;
}

.app-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  min-height: 90px;
}

.app-tile:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.app-tile img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 8px;
}

.app-tile span {
  font-size: 13px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recommended-list {
  list-style: none;
}

.recommended-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.recommended-list li:hover {
  background: rgba(0, 0, 0, 0.08);
}

.recommended-list li img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.recommended-list li span {
  font-size: 14px;
  color: #333;
}

.start-menu-footer {
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.05);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.start-menu-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.start-menu-user .user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: #ddd;
}

.start-menu-user .user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.start-menu-user .user-name {
  font-size: 15px;
  font-weight: 500;
  color: #333;
}

#power-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%; /* Circular power button */
  transition: background 0.2s ease;
}

#power-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

#power-btn svg {
  width: 20px;
  height: 20px;
  fill: #333;
}

/* Window System (Modernized) */
.window {
  position: absolute;
  background: rgba(255, 255, 255, 0.95); /* More solid background */
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px; /* More rounded */
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  min-width: 350px; /* Slightly larger min-width */
  min-height: 250px; /* Slightly larger min-height */
  resize: both;
  overflow: hidden;
  backdrop-filter: blur(15px); /* Stronger blur for glass effect */
  transform-origin: center;
  transition: all 0.2s ease-out; /* Smooth movement */
}

.window:hover {
  transform: translateY(-2px) scale(1.002);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.window-titlebar {
  background: white; /* Clean white titlebar */
  border-bottom: 1px solid #f0f0f0;
  height: 40px; /* Taller titlebar */
  display: flex;
  align-items: center;
  padding: 0 12px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.window-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  object-fit: contain;
}

.window-title {
  flex-grow: 1;
  font-size: 16px;
  color: #333;
  font-weight: 500;
  margin-right: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: none;
}

.window-controls {
  display: flex;
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1000;
}

.window-control {
  width: 48px; /* Slightly larger controls */
  height: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
  padding: 0;
  flex-shrink: 0;
}

.window-control:hover {
  background: rgba(0, 0, 0, 0.08); /* Darker hover for controls */
}

.window-control.minimize::after {
  content: '—'; /* Modern minus symbol */
  font-size: 16px;
  color: #666;
}

.window-control.maximize::after {
  content: '◻'; /* Modern square symbol */
  font-size: 16px;
  color: #666;
}

.window-control.close {
  border-top-right-radius: 16px;
}

.window-control.close:hover {
  background: #E81123; /* Classic red close button hover */
}

.window-control.close:hover::before,
.window-control.close:hover::after {
  background-color: white; /* White X on hover */
}

.window-control.close::before,
.window-control.close::after {
  content: '';
  position: absolute;
  width: 14px; /* Larger X */
  height: 2px;
  background-color: #666; /* Grey X */
  top: 50%;
  left: 50%;
}

.window-control.close::before { transform: translate(-50%, -50%) rotate(45deg); }
.window-control.close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.window-content {
  flex-grow: 1;
  padding: 20px;
  overflow: auto;
  background: white; /* Solid white content area */
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.window[data-maximized="true"] {
  border-radius: 0 !important;
  transform: none !important;
  transition: all 0.2s ease !important; /* Smooth transition when maximizing */
}

.window[data-maximized="true"] .window-titlebar {
  border-radius: 0;
}

.window[data-maximized="true"]:hover {
  transform: none !important;
}

/* Resize Handles (Invisible, but functional) */
.resize-handle {
  position: absolute;
  background: transparent;
  z-index: 1; /* Below titlebar, above content */
}

.resize-handle.n { top: -8px; left: 0; right: 0; height: 16px; cursor: n-resize; }
.resize-handle.e { top: 0; right: -8px; bottom: 0; width: 16px; cursor: e-resize; }
.resize-handle.s { bottom: -8px; left: 0; right: 0; height: 16px; cursor: s-resize; }
.resize-handle.w { top: 0; left: -8px; bottom: 0; width: 16px; height: 16px; cursor: w-resize; }
.resize-handle.ne { top: -8px; right: -8px; width: 16px; height: 16px; cursor: ne-resize; }
.resize-handle.se { bottom: -8px; right: -8px; width: 16px; height: 16px; cursor: se-resize; }
.resize-handle.sw { bottom: -8px; left: -8px; width: 16px; height: 16px; cursor: sw-resize; }
.resize-handle.nw { top: -8px; left: -8px; width: 16px; height: 16px; cursor: nw-resize; }

/* Settings Window Styles */
.settings-container {
  display: grid;
  grid-template-columns: 280px 1fr; /* Wider navigation */
  height: 100%;
  background: #f8f8f8; /* Lighter background */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.settings-nav {
  background: #eff3f7; /* Slightly darker nav background */
  padding: 25px 0;
  border-right: 1px solid #e0e0e0;
}

.settings-nav button {
  width: 100%;
  padding: 15px 25px; /* More padding */
  text-align: left;
  font-size: 16px;
  color: #333;
  border-left: 4px solid transparent; /* Indicate active state */
  transition: all 0.2s ease;
}

.settings-nav button:hover {
  background: #e9eef2;
}

.settings-nav button.active {
  background: #dae8f2; /* Active background */
  color: #0078D7;
  font-weight: 600;
  border-left-color: #0078D7;
}

.settings-content {
  padding: 35px;
  overflow-y: auto;
}

.settings-section h3 {
  font-size: 24px;
  margin-bottom: 25px;
  color: #222;
  font-weight: 600;
}

.setting-group {
  margin-bottom: 30px;
}

.setting-group label, .color-picker-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  font-size: 16px;
  color: #444;
}

.setting-description {
  display: block;
  font-size: 13px;
  color: #777;
  margin-top: 6px;
  line-height: 1.5;
}

.color-picker-group input[type="color"] {
  width: 80px;
  height: 35px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 2px;
  cursor: pointer;
}

input[type="range"] {
  width: 100%;
  margin: 12px 0;
  -webkit-appearance: none;
  background: #e0e0e0;
  height: 8px;
  border-radius: 4px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: #0078D7;
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  margin-top: -6px; /* Center thumb on track */
}

select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: white;
  font-size: 15px;
  color: #333;
}

.background-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.background-preview {
  height: 140px;
  border: 3px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.background-preview:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.background-preview.selected {
  border-color: #0078D7;
  box-shadow: 0 0 0 3px rgba(0, 120, 215, 0.4), 0 6px 15px rgba(0, 0, 0, 0.2);
}

.account-info {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 35px;
  padding: 15px;
  background: #f0f4f7;
  border-radius: 12px;
}

.account-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  background: #ddd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-details input {
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-top: 8px;
}

.update-status {
  background: #eaf2f9;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 25px;
  border: 1px solid #d4e3f0;
}

.update-status button {
  margin-top: 15px;
  padding: 10px 20px;
  background: #0078D7;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.update-status button:hover {
  background: #006abc;
}

.update-status button:disabled {
  background: #a9d2f2;
  cursor: not-allowed;
}

/* Music Player Styles */
.music-player {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%); /* Subtle gradient */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.now-playing {
  padding: 25px;
  background: linear-gradient(to top, rgba(255,255,255,0.9), rgba(255,255,255,0.8));
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.song-info {
  text-align: center;
  margin-bottom: 25px;
  animation: fadeIn 0.3s ease;
}

.song-title {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #0078D7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-artist {
  font-size: 18px;
  color: #666;
}

.playback-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
}

.playback-controls button {
  background: rgba(0, 120, 215, 0.1); /* Light blue background */
  border: 2px solid #0078D7;
  font-size: 22px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0078D7;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.playback-controls button:hover {
  background: #0078D7;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0, 120, 215, 0.4);
}

.playback-controls button.active {
  background: #0078D7;
  color: white;
}

.progress-container {
  height: 8px;
  background: #e0e0e0;
  margin: 15px 0;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #0078D7, #00BFFF); /* Blue gradient progress */
  border-radius: 4px;
  position: relative;
  transition: width 0.1s linear;
}

.progress-bar::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
  width: 16px;
  height: 16px;
  background: white;
  border: 3px solid #0078D7;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.progress-container:hover .progress-bar::after {
  opacity: 1;
  transform: translate(50%, -50%) scale(1.1);
}

.time-current, .time-total {
  font-size: 14px;
  color: #666;
  position: absolute;
  bottom: 5px;
  z-index: 2;
}

.time-current { left: 0; }
.time-total { right: 0; }

.volume-control {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.volume-control span {
  font-size: 20px;
  color: #666;
}

.volume-slider {
  flex-grow: 1;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
}

.volume-slider::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  background: #0078D7;
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  margin-top: -6px;
}

.playlist {
  flex-grow: 1;
  overflow-y: auto;
  padding: 15px;
}

.playlist-item {
  display: flex;
  align-items: center;
  padding: 15px;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.2s ease;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #f0f0f0;
}

.playlist-item:hover {
  background: rgba(0, 120, 215, 0.1);
  transform: translateX(8px);
}

.playlist-item.active {
  background: linear-gradient(90deg, #0078D7, #00BFFF);
  color: white;
  box-shadow: 0 2px 10px rgba(0, 120, 215, 0.3);
}

.playlist-item.active .song-number,
.playlist-item.active .song-title {
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.song-number {
  font-size: 15px;
  margin-right: 12px;
  font-weight: 500;
  color: #666;
}

.playlist-item .song-title {
  font-size: 16px;
  color: #333;
}

.playing .song-title {
  animation: musicPulse 2s infinite;
}

@keyframes musicPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.01); }
  100% { transform: scale(1); }
}

/* File Explorer (This PC, Documents, Recycle Bin) */
.file-explorer {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); /* Responsive grid */
  gap: 20px;
  padding: 15px;
  flex-grow: 1;
  overflow-y: auto;
}

.folder, .file {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 5px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  user-select: none;
}

.folder:hover, .file:hover {
  background-color: rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.folder img, .file img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 8px;
}

.folder span, .file span {
  font-size: 13px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.empty-folder {
  text-align: center;
  padding: 50px;
  color: #666;
  font-size: 18px;
}

/* Clippy */
.clippy-chat {
  flex-grow: 1;
  overflow-y: auto;
  padding: 15px;
  background: #f8f8f8;
  border-radius: 12px;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.clippy-message {
  padding: 10px 15px;
  border-radius: 15px;
  max-width: 85%;
  font-size: 15px;
  line-height: 1.5;
  word-wrap: break-word;
}

.clippy-message.user {
  background: #0078D7;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}

.clippy-message.assistant {
  background: #e0e0e0;
  color: #333;
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}

.clippy-message.assistant.typing {
  font-style: italic;
  opacity: 0.7;
}

.clippy-input-area {
  display: flex;
  gap: 12px;
  align-items: center;
}

.clippy-input-area textarea {
  flex-grow: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 15px;
  resize: none;
  font-size: 15px;
  outline: none;
  min-height: 50px;
}

.clippy-input-area button {
  padding: 12px 25px;
  background: #0078D7;
  color: white;
  border-radius: 15px;
  font-size: 16px;
  flex-shrink: 0;
}

/* Desktop Widgets */
.desktop-widget {
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  color: #333;
  text-align: center;
  cursor: grab;
  min-width: 150px;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  border: 1px solid rgba(0,0,0,0.05);
}

.desktop-widget.clock-widget {
  font-size: 32px;
  font-weight: bold;
  padding: 15px 25px;
  background: rgba(0,0,0,0.7);
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.desktop-widget.network-widget svg,
.desktop-widget.volume-widget svg,
.desktop-widget.battery-widget svg {
  width: 36px;
  height: 36px;
  fill: #0078D7;
  margin-bottom: 8px;
}

.desktop-widget.network-widget span,
.desktop-widget.volume-widget span,
.desktop-widget.battery-widget span {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  font-weight: 500;
}

.desktop-widget.battery-widget .battery-percent {
  font-weight: bold;
}

/* Minesweeper */
.minesweeper-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 20px;
  background: #f0f0f0;
  border-radius: 16px;
}

.minesweeper-header {
  background: #d0d0d0;
  padding: 12px;
  border: 2px solid #808080;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: fit-content; /* Adjust to grid size */
}

#mine-counter, #timer {
  background: #333;
  color: #ff0000;
  padding: 5px 12px;
  font-family: 'Digital-7', monospace; /* Digital font if available */
  font-size: 24px;
  border-radius: 6px;
  min-width: 70px;
  text-align: center;
}

#smiley-btn {
  width: 45px;
  height: 45px;
  font-size: 28px;
  background: #c0c0c0;
  border: 3px outset #fff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#smiley-btn:active {
  border: 3px inset #fff;
}

.minesweeper-grid {
  display: grid;
  gap: 1px;
  background: #808080; /* Darker grid lines */
  border: 4px inset #666; /* Inset border for grid */
  border-radius: 10px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.minesweeper-cell {
  width: 32px; /* Slightly larger cells */
  height: 32px;
  background: #c0c0c0;
  border: 3px outset #fff;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  border-radius: 4px;
}

.minesweeper-cell.revealed {
  border: 1px solid #a0a0a0;
  background: #e0e0e0;
}

.minesweeper-cell[data-revealed="true"] {
  border: 1px solid #a0a0a0;
  background: #e0e0e0;
}

.minesweeper-cell[data-flagged="true"] {
  background: #c0c0c0; /* Keep background for flagged */
  border: 3px inset #808080; /* Inset border for flags */
  color: #ff4500; /* Orange flag */
  font-size: 20px;
}

.minesweeper-cell[data-mineneighbors="1"] { color: #0000ff; }
.minesweeper-cell[data-mineneighbors="2"] { color: #008000; }
.minesweeper-cell[data-mineneighbors="3"] { color: #ff0000; }
.minesweeper-cell[data-mineneighbors="4"] { color: #000080; }
.minesweeper-cell[data-mineneighbors="5"] { color: #800000; }
.minesweeper-cell[data-mineneighbors="6"] { color: #008080; }
.minesweeper-cell[data-mineneighbors="7"] { color: #000000; }
.minesweeper-cell[data-mineneighbors="8"] { color: #808080; }

.minesweeper-controls {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: fit-content;
}

#difficulty {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: white;
  font-size: 15px;
}

#best-time {
  padding: 8px 12px;
  background: #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  color: #333;
}

/* Task Manager */
.task-manager-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #f8f8f8;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.processes-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 15px;
}

.process-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 10px;
  margin-bottom: 5px;
  font-size: 15px;
}

.process-item:hover {
  background: rgba(0, 120, 215, 0.08);
}

.process-item.selected {
  background: #0078D7;
  color: white;
}

.process-item img {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  object-fit: contain;
}

.process-info {
  flex-grow: 1;
}

.process-name {
  font-weight: 500;
}

.process-details {
  font-size: 12px;
  opacity: 0.8;
}

.terminate-btn {
  background: #e81123;
  color: white;
  padding: 12px 25px;
  border-radius: 10px;
  margin: 15px;
  align-self: flex-end;
}

.terminate-btn:hover {
  background: #c60f1c;
}

/* Multiplayer Cursor Styles */
.multiplayer-cursor {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px; /* More space for better visibility */
}

.multiplayer-cursor .cursor-avatar {
  width: 38px; /* Larger avatar */
  height: 38px;
  border-radius: 50%;
  border: 3px solid #0078D7; /* Thicker border */
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8), 0 0 15px rgba(0, 120, 215, 0.6); /* Stronger glow */
}

.multiplayer-cursor .cursor-username {
  background: rgba(0, 0, 0, 0.75); /* Slightly darker background */
  color: white;
  padding: 5px 10px;
  border-radius: 6px; /* Slightly more rounded */
  font-size: 13px;
  white-space: nowrap;
  animation: fadeOut 3s forwards;
  opacity: 0;
  transition: opacity 0.5s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.multiplayer-cursor:hover .cursor-username {
  opacity: 1;
  animation: none;
}

.multiplayer-cursor .cursor-program-icon {
  width: 28px; /* Larger icon */
  height: 28px;
  background: rgba(255, 255, 255, 0.9); /* More opaque */
  border-radius: 6px;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.multiplayer-cursor .cursor-program-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Update Screen Style */
.win8-update-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #0078D7; /* Windows blue */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  color: white;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
  transition: opacity 0.5s ease;
}

.update-content {
  padding: 40px;
  border-radius: 15px;
  background: rgba(0,0,0,0.2); /* Semi-transparent overlay for text */
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  max-width: 600px;
}

.win8-update-screen h1 {
  font-size: 48px;
  font-weight: 300;
  margin-bottom: 20px;
}

.win8-update-screen p {
  font-size: 20px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.win8-update-screen .metro-spinner {
  width: 70px;
  height: 70px;
  border-width: 7px;
  border-top-color: white;
  margin: 30px auto;
  animation: spin 1s linear infinite;
  border-radius: 50%;
}

.win8-update-screen .installation-text {
  font-size: 28px;
  font-weight: 300;
  animation: none; /* Disable default fade animation */
}

.version-info {
  margin-top: 30px;
  font-size: 18px;
  opacity: 0.8;
}

/* Media Queries for Responsiveness */
@media screen and (max-width: 768px) {
  /* Setup Wizard */
  .setup-header { padding: 20px 30px; }
  .setup-header h2 { font-size: 36px; }
  .setup-logo { width: 60px; height: 60px; }
  .setup-steps { padding: 20px 30px; }
  .setup-step { padding: 30px; }
  .setup-step h3 { font-size: 32px; }
  .setup-step p { font-size: 18px; }
  .setup-options, .edition-options, .recovery-options {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .setup-controls { padding: 20px 30px; gap: 15px; }
  .setup-controls button { padding: 12px 25px; font-size: 16px; }
  .form-group label { font-size: 22px; }
  .form-group input[type="text"] { font-size: 20px; padding: 12px; }
  .profile-pictures h4 { font-size: 22px; }
  .profile-picture-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .profile-picture-option { border-width: 3px; }
  .privacy-option { padding: 20px; margin-bottom: 15px; }
  .privacy-option label { font-size: 16px; gap: 10px; }
  .privacy-option .description { margin-left: 25px; font-size: 13px; }
  .privacy-option input[type="checkbox"] { width: 22px; height: 22px; }
  .installation-progress .installation-text { font-size: 28px; }

  /* Startup Screen */
  .startup-logo { width: 180px; height: 180px; }
  .loading-dots { margin-top: 40px; gap: 10px; }
  .dot { width: 10px; height: 10px; }

  /* Lock Screen */
  #lock-screen { padding-bottom: 50px; }
  .lock-screen-time { font-size: 90px; }
  .lock-screen-date { font-size: 28px; }
  .lock-screen-user .user-avatar { width: 80px; height: 80px; }
  .lock-screen-user .user-name { font-size: 24px; }
  .lock-screen-prompt { font-size: 20px; }

  /* Login Screen */
  .login-container { padding: 30px; max-width: 350px; }
  .login-avatar { width: 100px; height: 100px; margin-bottom: 25px; }
  .login-username { font-size: 28px; margin-bottom: 30px; }
  #password-input { padding: 14px; font-size: 16px; }
  #login-button { padding: 14px; font-size: 16px; }
  .login-option-btn { padding: 8px 15px; font-size: 14px; }
  .login-option-btn svg { width: 20px; height: 20px; }

  /* Desktop */
  .desktop-icons { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; padding: 10px; max-width: none; }
  .desktop-icon { width: 90px; height: 90px; padding: 8px; border-radius: 10px; }
  .desktop-icon img { width: 40px; height: 40px; margin-bottom: 6px; }
  .desktop-icon span { font-size: 11px; }

  /* Taskbar */
  #taskbar { height: 60px; padding: 0 10px; }
  #start-search-area { gap: 8px; }
  #start-btn { width: 48px; height: 48px; border-radius: 12px; }
  #start-btn .windows-logo { width: 28px; height: 28px; }
  #taskbar-search-container { width: 180px; }
  #taskbar-search { padding: 10px 15px 10px 35px; font-size: 14px; }
  .search-icon { left: 8px; width: 18px; height: 18px; }
  #taskbar-programs { gap: 8px; padding: 0 10px; }
  .taskbar-button { height: 48px; padding: 0 10px; border-radius: 12px; font-size: 13px; max-width: 120px; }
  #system-tray { gap: 10px; padding: 0 10px; }
  .tray-icon { font-size: 12px; padding: 4px 6px; }
  .tray-icon svg { width: 16px; height: 16px; margin-right: 4px; }
  #clock { font-size: 13px; padding: 4px 8px; border-radius: 6px; }

  /* Start Menu */
  #start-menu {
    width: 100%;
    height: 90vh;
    left: 0;
    bottom: 60px;
    border-radius: 20px 20px 0 0;
  }
  .start-menu-header { padding: 12px 15px; }
  #start-menu-search-input { padding: 8px 12px 8px 35px; font-size: 14px; }
  .start-menu-search-icon { left: 20px; width: 18px; height: 18px; }
  .start-menu-content { padding: 15px; }
  .start-menu-section { margin-bottom: 25px; }
  .start-menu-section h3 { font-size: 16px; margin-bottom: 12px; }
  .app-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 10px; }
  .app-tile { padding: 8px; min-height: 80px; border-radius: 10px; }
  .app-tile img { width: 40px; height: 40px; margin-bottom: 6px; }
  .app-tile span { font-size: 12px; }
  .recommended-list li { padding: 10px; gap: 10px; border-radius: 8px; }
  .recommended-list li img { width: 20px; height: 20px; }
  .recommended-list li span { font-size: 13px; }
  .start-menu-footer { padding: 12px 15px; }
  .start-menu-user .user-avatar { width: 32px; height: 32px; }
  .start-menu-user .user-name { font-size: 14px; }
  #power-btn { width: 36px; height: 36px; }
  #power-btn svg { width: 18px; height: 18px; }

  /* Windows */
  .window { min-width: 95%; min-height: calc(95% - 60px); left: 2.5% !important; top: 2.5% !important; border-radius: 16px; }
  .window-titlebar { height: 45px; padding: 0 10px; border-top-left-radius: 14px; border-top-right-radius: 14px; }
  .window-icon { width: 18px; height: 18px; margin-right: 8px; }
  .window-title { font-size: 15px; margin-right: 120px; }
  .window-control { width: 44px; }
  .window-control.close { border-top-right-radius: 14px; }
  .window-content { padding: 15px; border-bottom-left-radius: 14px; border-bottom-right-radius: 14px; }

  /* Settings */
  .settings-container { grid-template-columns: 1fr; }
  .settings-nav { flex-direction: row; overflow-x: auto; padding: 10px; border-right: none; border-bottom: 1px solid #e0e0e0; }
  .settings-nav button { padding: 12px 15px; font-size: 14px; border-left: none; border-bottom: 3px solid transparent; }
  .settings-nav button.active { border-bottom-color: #0078D7; border-left-color: transparent; }
  .settings-content { padding: 20px; }
  .settings-section h3 { font-size: 20px; margin-bottom: 20px; }
  .setting-group { margin-bottom: 20px; }
  .setting-group label, .color-picker-group label { font-size: 15px; margin-bottom: 8px; }
  .setting-description { font-size: 12px; margin-top: 4px; }
  .color-picker-group input[type="color"] { width: 60px; height: 30px; }
  input[type="range"] { margin: 10px 0; height: 6px; }
  input[type="range"]::-webkit-slider-thumb { width: 18px; height: 18px; margin-top: -5px; }
  select { padding: 8px; font-size: 14px; }
  .background-options { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 15px; }
  .background-preview { height: 100px; border-width: 2px; border-radius: 10px; }
  .account-info { flex-direction: column; text-align: center; gap: 15px; }
  .account-avatar { width: 80px; height: 80px; }
  .account-details input { padding: 8px 10px; font-size: 14px; }
  .update-status { padding: 20px; }

  /* Music Player */
  .music-player { border-radius: 14px; }
  .now-playing { padding: 15px; }
  .song-title { font-size: 22px; margin-bottom: 6px; }
  .song-artist { font-size: 16px; }
  .playback-controls { gap: 15px; margin-bottom: 20px; }
  .playback-controls button { width: 40px; height: 40px; font-size: 20px; }
  .progress-container { height: 6px; margin: 10px 0; }
  .progress-bar::after { width: 14px; height: 14px; }
  .time-current, .time-total { font-size: 12px; }
  .volume-control { gap: 10px; margin-top: 15px; padding-top: 12px; }
  .volume-control span { font-size: 18px; }
  .volume-slider { height: 6px; }
  .volume-slider::-webkit-slider-thumb { width: 18px; height: 18px; margin-top: -5px; }
  .playlist { padding: 10px; }
  .playlist-item { padding: 12px; border-radius: 8px; margin-bottom: 4px; }
  .song-number { font-size: 14px; margin-right: 10px; }
  .playlist-item .song-title { font-size: 15px; }

  /* File Explorer */
  .file-explorer { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 15px; padding: 10px; }
  .folder, .file { padding: 8px 5px; border-radius: 8px; }
  .folder img, .file img { width: 40px; height: 40px; margin-bottom: 6px; }
  .folder span, .file span { font-size: 12px; }

  /* Clippy */
  .clippy-chat { padding: 10px; border-radius: 10px; margin-bottom: 10px; gap: 8px; }
  .clippy-message { padding: 8px 12px; border-radius: 12px; font-size: 14px; }
  .clippy-input-area { gap: 8px; }
  .clippy-input-area textarea { padding: 10px; border-radius: 12px; min-height: 45px; font-size: 14px; }
  .clippy-input-area button { padding: 10px 20px; border-radius: 12px; font-size: 14px; }

  /* Desktop Widgets */
  .desktop-widget { padding: 15px; border-radius: 12px; min-width: 100px; min-height: 70px; font-size: 13px; }
  .desktop-widget.clock-widget { font-size: 28px; padding: 10px 20px; }
  .desktop-widget.network-widget svg,
  .desktop-widget.volume-widget svg,
  .desktop-widget.battery-widget svg { width: 30px; height: 30px; margin-bottom: 6px; }
  .desktop-widget.network-widget span,
  .desktop-widget.volume-widget span,
  .desktop-widget.battery-widget span { font-size: 12px; }

  /* Minesweeper */
  .minesweeper-container { padding: 15px; border-radius: 14px; }
  .minesweeper-header { padding: 10px; border-radius: 8px; }
  #mine-counter, #timer { font-size: 20px; padding: 4px 10px; min-width: 60px; }
  #smiley-btn { width: 40px; height: 40px; font-size: 24px; }
  .minesweeper-grid { gap: 0.5px; border-width: 3px; border-radius: 8px; }
  .minesweeper-cell { width: 28px; height: 28px; font-size: 16px; border-width: 2px; }
  .minesweeper-cell[data-flagged="true"] { font-size: 18px; border-width: 2px; }
  .minesweeper-controls { margin-top: 15px; }
  #difficulty { padding: 6px 10px; font-size: 14px; }
  #best-time { padding: 6px 10px; font-size: 14px; }

  /* Task Manager */
  .task-manager-container { border-radius: 14px; }
  .processes-list { padding: 10px; }
  .process-item { padding: 10px; border-radius: 8px; margin-bottom: 4px; font-size: 14px; }
  .process-item img { width: 20px; height: 20px; margin-right: 8px; }
  .process-details { font-size: 11px; }
  .terminate-btn { padding: 10px 20px; border-radius: 8px; margin: 10px; }

  /* Multiplayer Cursor */
  .multiplayer-cursor { gap: 6px; }
  .multiplayer-cursor .cursor-avatar { width: 30px; height: 30px; border-width: 2px; }
  .multiplayer-cursor .cursor-username { padding: 4px 8px; border-radius: 5px; font-size: 12px; }
  .multiplayer-cursor .cursor-program-icon { width: 22px; height: 22px; border-radius: 5px; padding: 2px; }

  .win8-update-screen h1 {
    font-size: 36px;
  }
  .win8-update-screen p {
    font-size: 18px;
  }
  .win8-update-screen .metro-spinner {
    width: 50px;
    height: 50px;
    border-width: 5px;
  }
  .win8-update-screen .installation-text {
    font-size: 24px;
  }
  .version-info {
    font-size: 16px;
  }
}

@media screen and (max-width: 480px) {
  /* Setup Wizard */
  .setup-header { padding: 15px 20px; gap: 15px; }
  .setup-header h2 { font-size: 28px; }
  .setup-logo { width: 50px; height: 50px; }
  .setup-steps { padding: 15px 20px; }
  .setup-step { padding: 25px; border-radius: 16px; }
  .setup-step h3 { font-size: 28px; margin-bottom: 20px; }
  .setup-step p { font-size: 16px; }
  .setup-options, .edition-options, .recovery-options {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .setup-controls { padding: 20px 30px; gap: 15px; }
  .setup-controls button { padding: 12px 25px; font-size: 16px; }
  .form-group label { font-size: 22px; }
  .form-group input[type="text"] { font-size: 20px; padding: 12px; }
  .profile-pictures h4 { font-size: 22px; }
  .profile-picture-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .profile-picture-option { border-width: 3px; }
  .privacy-option { padding: 20px; margin-bottom: 15px; }
  .privacy-option label { font-size: 16px; gap: 10px; }
  .privacy-option .description { margin-left: 25px; font-size: 13px; }
  .privacy-option input[type="checkbox"] { width: 22px; height: 22px; }
  .installation-progress .installation-text { font-size: 24px; }

  /* Startup Screen */
  .startup-logo { width: 180px; height: 180px; }
  .loading-dots { margin-top: 40px; gap: 10px; }
  .dot { width: 10px; height: 10px; }

  /* Lock Screen */
  #lock-screen { padding-bottom: 50px; }
  .lock-screen-time { font-size: 90px; }
  .lock-screen-date { font-size: 28px; }
  .lock-screen-user .user-avatar { width: 80px; height: 80px; }
  .lock-screen-user .user-name { font-size: 24px; }
  .lock-screen-prompt { font-size: 20px; }

  /* Login Screen */
  .login-container { padding: 30px; max-width: 350px; }
  .login-avatar { width: 100px; height: 100px; margin-bottom: 25px; }
  .login-username { font-size: 28px; margin-bottom: 30px; }
  #password-input { padding: 14px; font-size: 16px; }
  #login-button { padding: 14px; font-size: 16px; }
  .login-option-btn { padding: 8px 15px; font-size: 14px; }
  .login-option-btn svg { width: 20px; height: 20px; }

  /* Desktop */
  .desktop-icons { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; padding: 10px; max-width: none; }
  .desktop-icon { width: 90px; height: 90px; padding: 8px; border-radius: 10px; }
  .desktop-icon img { width: 40px; height: 40px; margin-bottom: 6px; }
  .desktop-icon span { font-size: 11px; }

  /* Taskbar */
  #taskbar { height: 60px; padding: 0 10px; }
  #start-search-area { gap: 8px; }
  #start-btn { width: 48px; height: 48px; border-radius: 12px; }
  #start-btn .windows-logo { width: 28px; height: 28px; }
  #taskbar-search-container { width: 180px; }
  #taskbar-search { padding: 10px 15px 10px 35px; font-size: 14px; }
  .search-icon { left: 8px; width: 18px; height: 18px; }
  #taskbar-programs { gap: 8px; padding: 0 10px; }
  .taskbar-button { height: 48px; padding: 0 10px; border-radius: 12px; font-size: 13px; max-width: 120px; }
  #system-tray { gap: 10px; padding: 0 10px; }
  .tray-icon { font-size: 12px; padding: 4px 6px; }
  .tray-icon svg { width: 16px; height: 16px; margin-right: 4px; }
  #clock { font-size: 13px; padding: 4px 8px; border-radius: 6px; }

  /* Start Menu */
  #start-menu {
    width: 100%;
    height: 90vh;
    left: 0;
    bottom: 60px;
    border-radius: 20px 20px 0 0;
  }
  .start-menu-header { padding: 12px 15px; }
  #start-menu-search-input { padding: 8px 12px 8px 35px; font-size: 14px; }
  .start-menu-search-icon { left: 20px; width: 18px; height: 18px; }
  .start-menu-content { padding: 15px; }
  .start-menu-section { margin-bottom: 25px; }
  .start-menu-section h3 { font-size: 16px; margin-bottom: 12px; }
  .app-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 10px; }
  .app-tile { padding: 8px; min-height: 80px; border-radius: 10px; }
  .app-tile img { width: 40px; height: 40px; margin-bottom: 6px; }
  .app-tile span { font-size: 12px; }
  .recommended-list li { padding: 10px; gap: 10px; border-radius: 8px; }
  .recommended-list li img { width: 20px; height: 20px; }
  .recommended-list li span { font-size: 13px; }
  .start-menu-footer { padding: 12px 15px; }
  .start-menu-user .user-avatar { width: 32px; height: 32px; }
  .start-menu-user .user-name { font-size: 14px; }
  #power-btn { width: 36px; height: 36px; }
  #power-btn svg { width: 18px; height: 18px; }

  /* Windows */
  .window { min-width: 95%; min-height: calc(95% - 60px); left: 2.5% !important; top: 2.5% !important; border-radius: 16px; }
  .window-titlebar { height: 45px; padding: 0 10px; border-top-left-radius: 14px; border-top-right-radius: 14px; }
  .window-icon { width: 18px; height: 18px; margin-right: 8px; }
  .window-title { font-size: 15px; margin-right: 120px; }
  .window-control { width: 44px; }
  .window-control.close { border-top-right-radius: 14px; }
  .window-content { padding: 15px; border-bottom-left-radius: 14px; border-bottom-right-radius: 14px; }

  /* Settings */
  .settings-container { grid-template-columns: 1fr; }
  .settings-nav { flex-direction: row; overflow-x: auto; padding: 10px; border-right: none; border-bottom: 1px solid #e0e0e0; }
  .settings-nav button { padding: 12px 15px; font-size: 14px; border-left: none; border-bottom: 3px solid transparent; }
  .settings-nav button.active { border-bottom-color: #0078D7; border-left-color: transparent; }
  .settings-content { padding: 20px; }
  .settings-section h3 { font-size: 20px; margin-bottom: 20px; }
  .setting-group { margin-bottom: 20px; }
  .setting-group label, .color-picker-group label { font-size: 15px; margin-bottom: 8px; }
  .setting-description { font-size: 12px; margin-top: 4px; }
  .color-picker-group input[type="color"] { width: 60px; height: 30px; }
  input[type="range"] { margin: 10px 0; height: 6px; }
  input[type="range"]::-webkit-slider-thumb { width: 18px; height: 18px; margin-top: -5px; }
  select { padding: 8px; font-size: 14px; }
  .background-options { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 15px; }
  .background-preview { height: 100px; border-width: 2px; border-radius: 10px; }
  .account-info { flex-direction: column; text-align: center; gap: 15px; }
  .account-avatar { width: 80px; height: 80px; }
  .account-details input { padding: 8px 10px; font-size: 14px; }
  .update-status { padding: 20px; }

  /* Music Player */
  .music-player { border-radius: 14px; }
  .now-playing { padding: 15px; }
  .song-title { font-size: 22px; margin-bottom: 6px; }
  .song-artist { font-size: 16px; }
  .playback-controls { gap: 15px; margin-bottom: 20px; }
  .playback-controls button { width: 40px; height: 40px; font-size: 20px; }
  .progress-container { height: 6px; margin: 10px 0; }
  .progress-bar::after { width: 14px; height: 14px; }
  .time-current, .time-total { font-size: 12px; }
  .volume-control { gap: 10px; margin-top: 15px; padding-top: 12px; }
  .volume-control span { font-size: 18px; }
  .volume-slider { height: 6px; }
  .volume-slider::-webkit-slider-thumb { width: 18px; height: 18px; margin-top: -5px; }
  .playlist { padding: 10px; }
  .playlist-item { padding: 12px; border-radius: 8px; margin-bottom: 4px; }
  .song-number { font-size: 14px; margin-right: 10px; }
  .playlist-item .song-title { font-size: 15px; }

  /* File Explorer */
  .file-explorer { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 15px; padding: 10px; }
  .folder, .file { padding: 8px 5px; border-radius: 8px; }
  .folder img, .file img { width: 40px; height: 40px; margin-bottom: 6px; }
  .folder span, .file span { font-size: 12px; }

  /* Clippy */
  .clippy-chat { padding: 10px; border-radius: 10px; margin-bottom: 10px; gap: 8px; }
  .clippy-message { padding: 8px 12px; border-radius: 12px; font-size: 14px; }
  .clippy-input-area { gap: 8px; }
  .clippy-input-area textarea { padding: 10px; border-radius: 12px; min-height: 45px; font-size: 14px; }
  .clippy-input-area button { padding: 10px 20px; border-radius: 12px; font-size: 14px; }

  /* Desktop Widgets */
  .desktop-widget { padding: 15px; border-radius: 12px; min-width: 100px; min-height: 70px; font-size: 13px; }
  .desktop-widget.clock-widget { font-size: 28px; padding: 10px 20px; }
  .desktop-widget.network-widget svg,
  .desktop-widget.volume-widget svg,
  .desktop-widget.battery-widget svg { width: 30px; height: 30px; margin-bottom: 6px; }
  .desktop-widget.network-widget span,
  .desktop-widget.volume-widget span,
  .desktop-widget.battery-widget span { font-size: 12px; }

  /* Minesweeper */
  .minesweeper-container { padding: 15px; border-radius: 14px; }
  .minesweeper-header { padding: 10px; border-radius: 8px; }
  #mine-counter, #timer { font-size: 20px; padding: 4px 10px; min-width: 60px; }
  #smiley-btn { width: 40px; height: 40px; font-size: 24px; }
  .minesweeper-grid { gap: 0.5px; border-width: 3px; border-radius: 8px; }
  .minesweeper-cell { width: 28px; height: 28px; font-size: 16px; border-width: 2px; }
  .minesweeper-cell[data-flagged="true"] { font-size: 18px; border-width: 2px; }
  .minesweeper-controls { margin-top: 15px; }
  #difficulty { padding: 6px 10px; font-size: 14px; }
  #best-time { padding: 6px 10px; font-size: 14px; }

  /* Task Manager */
  .task-manager-container { border-radius: 14px; }
  .processes-list { padding: 10px; }
  .process-item { padding: 10px; border-radius: 8px; margin-bottom: 4px; font-size: 14px; }
  .process-item img { width: 20px; height: 20px; margin-right: 8px; }
  .process-details { font-size: 11px; }
  .terminate-btn { padding: 10px 20px; border-radius: 8px; margin: 10px; }

  /* Multiplayer Cursor */
  .multiplayer-cursor { gap: 6px; }
  .multiplayer-cursor .cursor-avatar { width: 30px; height: 30px; border-width: 2px; }
  .multiplayer-cursor .cursor-username { padding: 4px 8px; border-radius: 5px; font-size: 12px; }
  .multiplayer-cursor .cursor-program-icon { width: 22px; height: 22px; border-radius: 5px; padding: 2px; }

  .win8-update-screen h1 {
    font-size: 32px;
  }
  .win8-update-screen p {
    font-size: 16px;
  }
  .win8-update-screen .metro-spinner {
    width: 40px;
    height: 40px;
    border-width: 4px;
  }
  .win8-update-screen .installation-text {
    font-size: 20px;
  }
  .version-info {
    font-size: 14px;
  }
}